import request from '@/utils/request'

// export const login = (data) => {
//   return request.post('/sys/login',data)
// }
export const login = data => request.post('/sys/login', data)
export const getUserInfo = () => {
  return request.get('/sys/profile')
}

export const updatePassword = (data) => {
  return request({
    url: '/sys/user/updatePass',
    method: 'put',
    data
  })
}
